/*
 * Copyright © 2004-2014 chenYuan. All rights reserved.
 * @Website:wwww.jspx.net
 * @Mail:39793751@qq.com
 * @author: chenYuan , 陈原
 * @License: Jspx.net Framework Code is open source (LGPL)，Jspx.net Framework 使用LGPL 开源授权协议发布。
 * @jvm:jdk1.6+  x86/amd64
 *
 */
package com.jspx.txweb.annotation;

import java.lang.annotation.*;

/**
 * Created by IntelliJ IDEA.
 * User: chenYuan
 * Date: 2009-7-3
 * Time: 15:33:35
 Action   SQL       HTTP

Create    Insert      PUT
Read     Select         GET
Update   Update      POST
Delete    Delete      DELETE


 
*/

@Documented
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface HttpMethod {

    //动作名称,在权限里边显示,也可以配置在TXWeb的caption属性里边
    String caption() default "";

    //是否支持手机页面，如果是,那么模板读取的时候，是手机端将读取 name.mobile.ftl的文件
    boolean mobile() default false;

    //RESTFull 路径
    String location() default "";

}